package com.example.IntentStartService;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

public class MyService extends Service{
	private String tag="MyService:";
	
	@Override
	public void onCreate() {
		Toast.makeText(this, tag+"onCreate!", Toast.LENGTH_SHORT).show();
		super.onCreate();
	}

	@Override
	public void onStart(Intent intent, int startId) {
		Toast.makeText(this, tag+"onStart!", Toast.LENGTH_SHORT).show();
		super.onStart(intent, startId);
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Toast.makeText(this, tag+"onStartCommand!", Toast.LENGTH_SHORT).show();
		return super.onStartCommand(intent, flags, startId);
	}

	@Override
	public void onDestroy() {
		Toast.makeText(this, tag+"onDestroy!", Toast.LENGTH_SHORT).show();
		super.onDestroy();
	}

	@Override
	public IBinder onBind(Intent intent) {
		Toast.makeText(this, tag+"onBind!", Toast.LENGTH_SHORT).show();
		return null;
	}

}
